package com.icode.core.model.house;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * Created with IntelliJ IDEA.
 * User: sunk
 * Date: 15-11-16
 * Time: 下午7:42
 * To change this template use File | Settings | File Templates.
 */
@Embeddable
public class CustomerInfo {
    private String customer;
    @Column(name = "phone_num")
    private String phoneNum;
    @Column(name = "description_for_cus")
    private String descriptionForCus;
    @Column(name = "person_num")
    private String personNum;
    @Column(columnDefinition = "bit", name = "notice_way")
    private boolean noticeWay;

    public CustomerInfo() {
    }
    public CustomerInfo(String customer,String phoneNum,String descriptionForCus,String personNum,boolean noticeWay) {
        this.customer = customer;
        this.phoneNum = phoneNum;
        this.descriptionForCus=descriptionForCus;
        this.personNum=personNum;
        this.noticeWay = noticeWay;
    }
    public String customer() {
        return customer;
    }

    public String phoneNum() {
        return phoneNum;
    }

    public String description() {
        return descriptionForCus;
    }

    public String personNum() {
        return personNum;
    }

    public boolean noticeWay() {
        return noticeWay;
    }

    public void update(String customer, String phoneNum, String description) {
        this.phoneNum = phoneNum;
        this.customer = customer;
        this.descriptionForCus = description;
    }

    public void update(String customer, String phoneNum, String description, String personNum, boolean noticeWay) {
        this.phoneNum = phoneNum;
        this.customer = customer;
        this.descriptionForCus = description;
        this.personNum = personNum;
        this.noticeWay = noticeWay;
    }

}
